#coding=utf-8
'''
Created on 2009-9-10

@author: mengqc
'''
from django.http import *

def redirect_parent(request):
    '''
功能：对话框关闭后刷新页面时使用。
    '''
    return HttpResponse("<script>parent.location.href='%s'.split('#')[0];</script>"%(request.GET["next"]))